package swm_enterprise_prj.json_jaxb_test.model;

import java.util.Date;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


@XmlRootElement(name="Weater")
@XmlType(propOrder={"key", "weather", "temp_lo", "temp_hi", "date"})
@PersistenceCapable
public class Weather {
	@Persistent
	@PrimaryKey
	private String key;

	@Persistent
	private String weather;
	
	@Persistent
	private Double temp_lo;
	
	@Persistent
	private Double temp_hi;
	
	@Persistent
	private Date date;
	
	public Weather() {}

	public Weather(String weather, Double temp_lo, Double temp_hi, Date date) {
		super();
		this.weather = weather;
		this.temp_lo = temp_lo;
		this.temp_hi = temp_hi;
		this.date = date;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getWeather() {
		return weather;
	}

	public void setWeather(String weather) {
		this.weather = weather;
	}

	public Double getTemp_lo() {
		return temp_lo;
	}

	public void setTemp_lo(Double temp_lo) {
		this.temp_lo = temp_lo;
	}

	public Double getTemp_hi() {
		return temp_hi;
	}

	public void setTemp_hi(Double temp_hi) {
		this.temp_hi = temp_hi;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	
}
